package com.xy.Improve;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/21 20:36
 * @description
 */
public class RedHeadDuck extends Duck{

    public RedHeadDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("我是红头鸭...");
    }
}
